package com.liruo.treasureattic.common.model.enume;

import com.liruo.enumconverter.model.SourceEnum;
import com.liruo.treasureattic.common.model.constant.TreasureAtticConstant;
import lombok.AllArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author:liruo
 * @Date:2023-02-19-13:32:01
 * @Desc
 */
@AllArgsConstructor
public enum GenderEnum implements Serializable, SourceEnum<Integer> {
    MAN(0), WOMAN(1);
    private final Integer value;
    @Serial
    private static final long serialVersionUID = TreasureAtticConstant.TREASURE_ATTIC_VERSION;

    @Override
    public Integer source() {
        return this.value;
    }
}
